<!DOCTYPE html>
<html>
    <head>
        <title>SISCO - Corregir precio</title>

        {include file="head_scripts.html"}
    </head>

    <body>

        {include file="header.html"}

        <div class="container">
            {include file="messages.html"}
            
            {if (true)}
<div id="" class="row">
	

                    {if (true)}
<div id="" class="span3">
	
                            {include file="precio_sidebar.html"}
                        
</div>
{/if}

                    {if (true)}
<div id="" class="span9">
	
                            {if (true)}
<form id="" class="" action="" method="post" enctype="multipart/form-data">
	
                                    <legend >Corregir precio</legend>

                                    {if (true)}
<label for="fecha_desde">Fecha desde</label>
<input id="fecha_desde" name="fecha_desde" type="date" value="{$precio->fecha_desde}" placeholder=""  />
{/if}
                                    
                                    <label for="valor">Valor</label>
                                    <div class="input-prepend">
                                        <span class="add-on">$</span>
                                        <input id="valor" name="valor" type="number" placeholder="" value="{$precio->valor}" step="0.01">
                                    </div>
                                    
                                    <label >Producto</label>

                                    {if (true)}
<select name="producto">
	<option value="0">Please select something</option> 
{foreach from=$productos item="producto"}
	
	{if ($precio->producto->id == $producto->id)}
		<option value="{$producto->id}" selected="selected">{$producto->descripcion}</option>
	{else}
		<option value="{$producto->id}">{$producto->descripcion}</option>
	{/if}

{/foreach}
</select>
{/if}
                                    
                                    
                                    {if (true)}
<div id="" class="form-actions">
	
                                            <button id="" name="" type="submit" class='btn btn-primary'>Corregir</button>

                                            <a id="" name="" href="precios/delete/{$precio->id}/" class='btn btn-danger'>Eliminar</a>

                                        
</div>
{/if} <!-- .form-actions -->

                                
</form>
{/if} <!-- form -->

                        
</div>
{/if} <!-- .span10 -->

                
</div>
{/if} <!-- .row -->

            {include file="footer.html"}
        </div><!-- .container -->

        {include file="footer_scripts.html"}
        
    </body>
</html>